package com.ieng.kican.modules.system.rest;

import com.ieng.kican.api.model.Role;
import com.ieng.kican.common.http.MR;
import com.ieng.kican.modules.system.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/system/role")
public class RoleController {
    @Autowired
    private RoleService roleService;


    @RequestMapping("/list")
    public MR<?> list(){
        return null;
    }

    @GetMapping
    public MR<?> one(@RequestParam ("id") Long id){
        return null;
    }

    @PostMapping
    public MR<?> add(@Validated @RequestBody Role role){
        return null;
    }

    @PutMapping
    public MR<?> update(@RequestBody Role role){
        return null;
    }

}
